package com.shitou.springai1.admin.entity.dto;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class CustomUserDetailsDto extends User {
    private UserDto userDto;

    public CustomUserDetailsDto(UserDto userDto, String password,
                                Collection<? extends GrantedAuthority> authorities) {
        super(userDto.getStuOrTeaId(), password, authorities);
        this.userDto = userDto;
    }

    public UserDto getUserDto() {
        return userDto;
    }
}
